﻿@model kxcxw.Data.Entities.PublichInformation
@{
    ViewBag.Title = "Details";
    Layout = "~/Areas/Admin/Views/Shared/_InfoLayout.cshtml";
}
<h2>
    @Html.ActionLink("信息管理", "Index") &raquo; @Html.ActionLink("详细信息", "Details", null, new { @class = "active" })</h2>
<div id="main">
    <fieldset>
        <div class="display-label">@Html.LabelFor(model => model.Title)</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Title)
        </div>
        <div class="display-label">
            品牌：</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Brand)
        </div>
        <div class="display-label">@Html.LabelFor(model => model.ItemDeitalID)</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.SysItemDetial.itemDetialName)
        </div>
        <div class="display-label">@Html.LabelFor(model => model.PromotionType)</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.PromotionType)
        </div>
        <div class="display-label">@Html.LabelFor(model => model.ShopUrl)</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.ShopUrl)
        </div>
        <div class="display-label">@Html.LabelFor(model => model.OriginalPrice)</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.OriginalPrice)
        </div>
        <div class="display-label">@Html.LabelFor(model => model.Discount)</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Discount)
        </div>
        <div class="display-label">@Html.LabelFor(model => model.PresentPrice)</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.PresentPrice)
        </div>
        <div class="display-label">@Html.LabelFor(model => model.Other)</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Other)
        </div>
        <div class="display-label">@Html.LabelFor(model => model.Desception)</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Desception)
        </div>
        <div class="display-label">@Html.LabelFor(model => model.StartDate)</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.StartDate)
        </div>
        <div class="display-label">@Html.LabelFor(model => model.EndDate)</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.EndDate)
        </div>
        <div class="display-label">@Html.LabelFor(model => model.Addres)</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Addres)
        </div>
        <div class="display-label">@Html.LabelFor(model => model.Mobile)</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Mobile)
        </div>
        <div class="display-label">@Html.LabelFor(model => model.ContactPerson)</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.ContactPerson)
        </div>
        <div class="display-label">@Html.LabelFor(model => model.IM)</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.IM)
        </div>
        <div class="display-label">图片：</div>
        <div class="display-field">
            <div class="thumbnails">
            @if (Model.PictureShow != null)
            {
                foreach (string filename in System.Xml.Linq.XElement.Parse(Model.PictureShow).Elements().ToList())
                {
                    if (filename != "")
                    {
                    <div class="imgbox" id="@filename">
                       <img style="margin: 5px; opacity: 1;" src="@Url.Content("~/Content/upload/thumbnail/" + filename)">
                    </div>
                    }
                }
            }
            </div>
        </div>
        <div class="display-label">@Html.LabelFor(model => model.InfoSource)</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.InfoSource)
        </div>
        <div class="display-label">@Html.LabelFor(model => model.PriorityLevel)</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.PriorityLevel)
        </div>
        <div class="display-label">@Html.LabelFor(model => model.InfoType)</div>
        <div class="display-field">
            @if (Model.InfoType == 1)
            {
                <span>网店</span>
            }
            else if (Model.InfoType == 2)
            {
                <span>实体店</span>
            }
        </div>
        <div class="display-label">@Html.LabelFor(model => model.Status)</div>
        <div class="display-field">
            @if (Model.Status == 1)
            {
                <span>正常</span>
            }
            else if (Model.Status == 0)
            {
                <span>未通过</span>
            }
        </div>
        <div class="display-label">@Html.LabelFor(model => model.PublishDate)</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.PublishDate)
        </div>
        <div class="display-label">@Html.LabelFor(model => model.AreaType)</div>
        <div class="display-field">
            @ViewData["areaType"]
        </div>
        <div class="display-label">@Html.LabelFor(model => model.PublishID)</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.SysUserInfo.UserName)
        </div>
    </fieldset>
</div>
